home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / p / portfoli / batchio / batchio.doc < prev    next >
Encoding:
Text File  |  1996-10-30  |  6.3 KB  |  166 lines

  1.                        APPBATCH 
  2. >>>>>>>>>>>>>> MACROS for the Portfolio !!! <<<<<<<<<<<<<<<< 
  3.  
  4. Some of the frequently used Portfolio applications just take
  5. too many keystrokes. For instance looking for a telephone-
  6. number and dialing it takes as many as fifteen keystrokes. A
  7. batch file for doing this would come in handy. But using just
  8. DIP doesn't allow APP programs beeing used in batchfiles. The
  9. utility FAKE.COM does.
  10.  This short DOS command is public domain since it was
  11. published in the december 1985 issue of PC magazine. It
  12. emulates keyboard input. Using FAKE.COM you can make a batch
  13. files like DIAL.BAT so that when you type
  14.    DIAL jim <enter>
  15.                       it:
  16. 1 - starts the APP applications
  17. 2 - chooses the Address book
  18. 2 - Searches for the name jim in your current .ADR file.
  19. 3 - Sets up the dialing screen for the first occurence of
  20. "jim".
  21.  
  22. HOW DOES IT WORK ?
  23.  
  24. Fairly simple: after the command FAKE you can add a string of
  25. keystrokes. Normal keystrokes are written as a normal string,
  26. between "", or by typing the ASCII code for each keystroke
  27. (decimal), seperated by spaces. Extended keyboard codes can be
  28. sent using a leading @ and the extended code in decimal
  29. notation.
  30.  
  31. Syntax for using FAKE.COM (mostly in BATCH files :) 
  32.  
  33.        FAKE ["letters"] [00] [@00] 
  34.  
  35. As you probably know you can make the actions of a batch com-
  36. mand 'invisible' (in DOS 3.3 and higher) by using a leading @.
  37. The batchfile DIAL.BAT as described above would look like
  38. this:
  39.  
  40. @FAKE "app" 13 97 @59 115 "%1" 13 @59 100
  41.   ³     ³    ³ ³   ³   ³   ³   ³   ³   ³
  42.   ijגגגגגדגגגגדגדגגגדגגגדגגגדגגגדגגגדגגגדגג³ Command
  43.         ø    ø ø   ø   ø   ø   ø   ø   ø
  44.         ijגגגגדגדגגגדגגגדגגגדגגגדגגגדגגגדגג³ start APPlications
  45.              ø ø   ø   ø   ø   ø   ø   ø
  46.              ijגדגגגדגגגדגגגדגגגדגגגדגגגדגג³ return
  47.                ø   ø   ø   ø   ø   ø   ø
  48.                ijגגגדגגגדגגגדגגגדגגגדגגגדגג³ a for Address-book
  49.                    ø   ø   ø   ø   ø   ø
  50.                    ijגגגדגגגדגגגדגגגדגגגדגג³ ATARI button (=F1)
  51.                        ø   ø   ø   ø   ø
  52.                        ijגגגדגגגדגגגדגגגדגג³ s for Search
  53.                            ø   ø   ø   ø
  54.                            ijגגגדגגגדגגגדגג³ expands to "jim"
  55.                                ø   ø   ø    on execution.
  56.                                ijגגגדגגגדגג³ return
  57.                                    ø   ø
  58.                                    ijגגגדגג³ ATARI button
  59.                                        ø
  60.                                        ijגג³ d for Dial
  61. SEARCH.BAT looks up a name in the current addres file and
  62. displays it.
  63. use:   SEARCH name <enter>
  64.  
  65. SERVE.BAT starts the SETUP/FILE TRANSFER/SERVER mode.
  66. use:   SERVE <enter>
  67.  
  68. THIN.BAT changes the SETUP/PRINTER/SETUP CODE, so that output
  69. from the standard PF applications are printed in condensed
  70. printing. Especially useful for wide spreadsheets.
  71. The printer codes used here work on most matrix printers
  72. (Epson-compatibles).
  73. use: THIN <enter>
  74.  
  75. WIDE.BAT returns the printing mode to a "normal" 10 Characters
  76. per Inch.
  77.  
  78. SHH.BAT toggles the Portfolio in to and out of  MUTE mode (for
  79. use in Church or something...). 
  80.  
  81. CALC.BAT is a very fast way to calculate something from the
  82. DOS prompt, for instance : CALC 87*2048 
  83. use : CALC [calculation] <enter>
  84.  
  85. LOAD.BAT starts the editor and immediately loads a file :
  86. use LOAD [filename]<enter>
  87.  
  88. ALARM.BAT sets the alarm for a time (on the current day)
  89. use ALARM 14:00 <enter>
  90. or 
  91. ALARM 14:00 message <enter>
  92. (the message may contain no spaces) 
  93.  
  94. MEMO.BAT writes the heading for a standard-memo. You can type the subject of the
  95. memo directly behind the command, like:
  96. MEMO subject_of_memo <enter>
  97.  
  98. If in the DOS ENVIRONMENT a variabele %owner% has been declared
  99. (SET owner=S.J.Spoelstra) then this name is used in the memo header. 
  100. For clarity : here is my AUTOEXEC.BAT :
  101.  
  102.  
  103.      @ECHO OFF 
  104.      PROMPT $P$G 
  105.      PATH= C:\;A:; 
  106.      SET owner=S.J.Spoelstra 
  107.      ECHO %owner% 
  108.      APP 
  109.  
  110. If now I type 
  111.             MEMO bicycle 
  112.                   then the file MEMO.TXT will look like this:  
  113.      --------Memo-------------  
  114.      Subj: bicycle
  115.      Date: Sun  1-04-1990
  116.      Time: 20:10:54.00
  117.      From: S.J.Spoelstra
  118.      To  :
  119.      -------------------------   Combination of the really quite extensive possibilities of BATCHFILES on the
  120. Portfolio with the tricks FAKE.COM makes possible will probably encourage users to
  121. find their own shortcuts for Portfolio operation. I would like to know if you do find
  122. new applications.
  123.  
  124. **************************************************************
  125. *   IF THESE BATCHFILES GIVE PROBLEMS ON YOUR PF.....        * 
  126. **************************************************************
  127.  
  128. I use these batchfiles quite often on my Portfolio (DIP version 1.052) and they have
  129. not given me any problems, except when, while fooling around with MEMO.BAT , I
  130. ended up with a textfile ending in one space and a return. This is a well-
  131. documented BUG in Portfolio DIP, which makes it necessary to COLD-START the PF.
  132. Not the thing you want to have to do a lot. Reactions on the first release of
  133. APPBATCH were that users operating later DIP versions even had bigger problems
  134. using MEMO.BAT. It crashed the machine every time. The PF did display a
  135. apologetic remark (quite an improvement ,ATARI, thanks !) but it hung up the
  136. machine just the same. It now appears the PF editor is allergic to EVERY occurance
  137. of spaces before a hard return. That, at least, is my conclusion; I removed all
  138. unnecessary spaces from the MEMO.BAT file and now everything works fine, as well
  139. on the DIP v1.052 as on v1.072.
  140.  
  141. My Portfolio is constantly in INSERT mode, so I designed for MEMO.BAT to leave the
  142. cursor one space behind `TO :'. If you prefer TYPEOVER mode then you will have to
  143. redesign the batchfile.
  144.  
  145. With thanks to Peter ten Hoopen from Amsterdam, who typed in FAKE.COM from
  146. PC-Magazine . 
  147.  
  148. Sjoerd Spoelstra 
  149. Comments to ATARI BBS HOLLAND 
  150. (03473)77584/77376 
  151.  
  152. APPENDIX : EXTENDED CODES FOR USE WITH FAKE.COM
  153.  
  154. @59           F1 function key or ATARI button.
  155. @59-@68       F1 to F10 function keys
  156. @71           Home
  157. @72           Cursor Up.
  158. @73           Page Up.
  159. @75           Cursor Left.
  160. @77           Cursor Right.
  161. @79           End.
  162. @80           Cursor Down.
  163. @81           Page Down.
  164. @82           Ins.
  165. @83           Del.
  166. ə